import { Pipe, PipeTransform } from '@angular/core'
import { AdResourceService } from './resource.service'

@Pipe({
  name: 'resource',
})
export class AdResourcePipe implements PipeTransform {
  constructor(private _AdResourceService: AdResourceService) {}
  transform(value: string): string {
    return this._AdResourceService.getFullPath(value)
  }
}
